package com.geekhalo.async.v1;

import com.geekhalo.async.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class SpringAsyncService {
    @Autowired
    private TestService testService;

    @Async
    public void test(){
        this.testService.run();
    }
}
